package org.jeecg.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;

import java.sql.Timestamp;

import javax.persistence.*;

@Data
@TableName("biz_site_user")
public class BizSiteUserEntity {
    @TableId(type = IdType.ASSIGN_ID)
    @Id
    @Column(name = "id", nullable = false)
    @ApiModelProperty(value = "主键ID")
    private String id;
    @Basic
    @Column(name = "site_id", nullable = false, length = 32)
    @ApiModelProperty(value = "站点编号")
    private String siteId;
    @Basic
    @Column(name = "user_id", nullable = false, length = 128)
    @Dict(dictTable ="sys_user",dicText = "realname",dicCode = "id")
    @ApiModelProperty(value = "用户编号")
    private String userId;
    @Basic
    @Column(name = "create_by", nullable = false)
    @ApiModelProperty(value = "创建人ID 取登录信息")
    private Object createBy;
    @Basic
    @Column(name = "create_time", nullable = false)
    @ApiModelProperty(value = "创建时间，取传入时间")
    private Timestamp createTime;
    @Basic
    @Column(name = "update_by", nullable = false)
    @ApiModelProperty(value = "修改人ID，取登录信息")
    private Object updateBy;
    @Basic
    @Column(name = "update_time", nullable = false)
    @ApiModelProperty(value = "修改时间 自动更新")
    private Timestamp updateTime;
    @Basic
    @Column(name = "status", nullable = false)
    @ApiModelProperty(value = "逻辑删除标识 1是未删除，0是已删除")
    @Dict(dicCode = "dict_item_status")
    private Object status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSiteId() {
        return siteId;
    }

    public void setSiteId(String siteId) {
        this.siteId = siteId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Object getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Object createBy) {
        this.createBy = createBy;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Object getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Object updateBy) {
        this.updateBy = updateBy;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Object getStatus() {
        return status;
    }

    public void setStatus(Object status) {
        this.status = status;
    }
}
